﻿using System;
using System.Collections.ObjectModel;
using Reflector.CodeModel;

namespace CallGraphExtractor.CecilAdapter
{
    class TypeCollection : Collection<IType>, ITypeCollection
    {
        #region Lifecycle

        public TypeCollection(Mono.Collections.Generic.Collection<Mono.Cecil.GenericParameter> genericParameterCollection)
        {
            foreach (var item in genericParameterCollection)
            {
                this.Add(new GenericParameter(item));
            }
        }

        #endregion Lifecycle

        #region ITypeCollection Members

        public void AddRange(System.Collections.ICollection types)
        {
            throw new NotImplementedException();
        }

        public new void Remove(IType value)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
